package com.project.class4_11.prototype;

public class Test {
    public static void main(String[] args) {
        Man m1=new Man("吴迪",23,"桑塔纳");
//        Man m2=m1.clone();
//        System.out.println(m1);
//        System.out.println(m2);
//        System.out.println(m1==m2);
//        System.out.println(m1.getCar()==m2.getCar());
        Man m2=m1.deepClone();
        System.out.println(m2);
        System.out.println(m1);
        System.out.println(m1==m2);

        System.out.println(m1.getCar()==m2.getCar());
    }
}
